import type { LcdTheme } from '@/api/modules/lcd/theme';
import { useThemeCanvas } from '@/hooks/theme.canvas';
import { ref } from 'vue';

const { componentList, currentComponent, raw: componentObj } = useThemeCanvas();
export const themeTab = ref<'canvas' | 'layer'>();
export { componentList, currentComponent, componentObj };
export const currentTheme = ref<LcdTheme>({
  themeId: '',
  themeName: '',
  themeBoard: '',
  deptId: null,
  background: '',
  image: [],
  scale: 0,
  imgSrc: '',
  category: '',
  share: '0',
  major: '0',
});
